<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,maximum-scale=1.0" />
    <title>详情订单表</title>
<#include "/view/admin/head.html"/>





    <style type="text/css">
        .list-path {
            height: 50px;
            line-height: 50px;
            background-color: #9acfea;
        }

        .table-class {
            width: 90%;
            text-align: center;
            border: 1px solid #afd9ee;
            margin: 0 auto;
            margin-top: 50px;
        }

        table th {
            width: 20%;
            background-color: #d9edf7;
            text-align: right;
        }

        table td {
            width: 20%;
            text-align: left;
        }


    </style>
    <script type="text/javascript">

        $(function(){



        });

    </script>
</head>
<body>

<#include "/view/admin/listnav.html"/>


<div class="table-class">
<#include "/view/admin/opermsg.html"/>
        <table class="table table-bordered">

                <input type="hidden" style="display: none" name="orderCode" value="${entity.orderCode!}"/>
            <tr>
                <th>商品默认图片</th>
                <td><img src="http://www.51d1d.com/chezhu/upload/QOqZq7jMjoXDYmF3idV.jpeg" height="100px"></td>
                <th>商品名称</th>
                <td>${entity.commodityName!}</td>
            </tr>

            <tr>
                <th>商家</th>
                <td>${entity.businessName!}</td>
                <th>商品类型</th>
                <td>${entity.typeName!}</td>
            </tr>

            <tr>
                <th>订单支付金额</th>
                <td>${entity.totalAmount!}</td>
                <th>商品销售价格</th>
                <td>${entity.salePrice!}</td>
            </tr>
            <tr>
                <th>购买商品数量</th>
                <td>${entity.amount!}</td>
                <th>购买用户</th>
                <td>${entity.nickname!}</td>
            </tr>
            <tr>
                <th>订单状态</th>
                <td>
                    <#if entity.status??>
                        <#if entity.status==3>未开始
                            <#elseif entity.status==4>未使用
                                <#elseif entity.status==5>已使用
                                    <#elseif entity.status==6>已过期
                                        <#elseif entity.status==0>待支付
                                            <#elseif entity.status==1>支付成功
                                                <#elseif entity.status==2>支付失败
                                                    <#elseif entity.status==7>待收货
                                                        <#elseif entity.status==8>已完成
                                                            <#elseif entity.status==9>已关闭
                                                                <#elseif entity.status==10>等待退款
                                                                    <#elseif entity.status==11>已退款
                                                                        <#elseif entity.status==15>机器自动确定
                                                                            <#elseif entity.status==11>已领取
                                                                                <#elseif entity.status==12>未领取
                                                                                    <#elseif entity.status==13>待发货
                                                                                        <#elseif entity.status==14>退款失败
                                                                                            <#elseif entity.status==16>等待退款
                        </#if>

                    </#if>

                </td>
            </tr>
            <tr><td colspan="4">优惠券信息</td></tr>
            <tr>
                <#if coupons??>
                    <th>是否使用优惠券</th>
                    <td><span class="label label-success">是</span></td>

                    <#else>
                        <th>是否使用优惠券</th>
                        <td colspan="3"><span class="label label-default">否</span></td>

                </#if>


            </tr>
            <#if coupons??>
                <tr>
                    <th>优惠券名称</th>
                    <td>${coupons.thingName!}</td>
                    <th>优惠金额</th>
                    <td colspan="3">${coupons.price!}</td>
                </tr>
            </#if>
                <td colspan="4"><hr/></td>
            </tr>
            <tr>
                <th>收货人</th>
                <td>${entity.recipients!}</td>
                <th>收货地址</th>
                <td>${entity.address!}</td>
            </tr>
            <tr>
                <th>收货人手机号码</th>
                <td>${entity.phoneNo!}</td>
                <th></th>
                <td></td>
            </tr>





            <tr>
                <td colspan="4" width="100%" style="text-align: center;">
                    <a class="btn btn-danger " href="javascript:window.history.go(-1)">
                        </span>返回</a>
                </td>
            </tr>

        </table>



</div>

<script type="text/javascript">

</script>


</body>
</html>
